/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nanosn.framework.database;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author selkhateeb
 */
public class DatabaseEntityManager
{
    private static String persistenceUnitName = "NanoSNFramework-DatabasePU";

    public static EntityManager getEntityManager()
    {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistenceUnitName);
        return emf.createEntityManager();
    }
}
